package com.acme.bankapp.domain.bank;

public abstract class AbstractAccount implements Account 
{
	private double balance;
	
	public double getBalance() {
		return balance;
	}

    // XXX [MY]  Balance as constructor argument is best way
	public void setBalance(double balance) {
		this.balance = balance;
	}
	
	public abstract void deposit(double x);
	public abstract void withdraw(double x);
	public abstract double maximumAmountToWithdraw();
}
